import { defineStore } from 'pinia'

export const useUserStore = defineStore({
  id: 'user',
  state: () => ({
    userInfo: {
      userid: '',
      name: '',
      mobile: '',
      email: '',
      avatar: ''
    }
  }),
  actions: {},
  persist: {
    enabled: true,
    strategies: [{ paths: ['userInfo'], storage: localStorage }]
  }
})
